feat: Add Select component for form inputs - #34
Draft
noofreuuuh with Copilot wants to merge 2 commits into
Draft
noofreuuuh with Copilot wants to merge 2 commits into
noofreuuuh with Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Add Select component for form inputs
feat: Add Select component for form inputs
Jun 4, 2026
- Add Select component with Select.Option compound sub-component - Support placeholder, error message, disabled, fullWidth, size (sm/md/lg) - Reuse component-input tokens for visual consistency with Input - Forward ref to native <select> element - Accessible: aria-invalid, aria-describedby for errors - Add Playwright CT tests - Add Storybook stories - Add Docusaurus examples and documentation
- Add `hidden` attribute to placeholder option to prevent re-selection - Rename SizeValue to SelectSizeValue for consistent naming - Remove type alias in exports
noofreuuuh
force-pushed
the
copilot/add-select-component
branch
from
September 28, 2026 22:27
4235f48 to
f7249ff
Compare
Contributor
|
Contributor
⚡ Performance Budget Report✅ All Performance Budgets Passed!Your changes meet all performance requirements. Great work! 🎉 📊 Performance Metrics
📦 Size Breakdown⏱️ Timing Breakdown |
Contributor
🧩 Design System Packages — CI Report
|
| Package | Check | Status |
|---|---|---|
| 🪙 Tokens | validate:tokens | ✅ Passed |
| 🪙 Tokens | prettier:check | ✅ Passed |
| 🎨 Themes | lint | ✅ Passed |
| 🎨 Themes | typecheck | ✅ Passed |
| 🎨 Themes | validate:token-usage | ✅ Passed |
| 🎨 Themes | validate:theme:all | ✅ Passed |
| 🎨 Themes | prettier:check | ✅ Passed |
| 🧩 Main | lint | ✅ Passed (2 warning(s)) |
| 🧩 Main | typecheck | ✅ Passed |
| 🧩 Main | validate:token-usage | ✅ Passed |
| 🧩 Main | validate:components:strict | ✅ Passed |
| 🧩 Main | prettier:check | ✅ Passed |
| 📖 Storybook | lint | ✅ Passed |
| 📖 Storybook | typecheck | ❌ Failed |
| 📖 Storybook | validate:token-usage | ✅ Passed |
| 📖 Storybook | prettier:check | ✅ Passed |
| 🔧 CLI | lint | ✅ Passed |
| 🔧 CLI | typecheck | ✅ Passed |
| 🔧 CLI | validate:token-usage | ✅ Passed |
| 🔧 CLI | prettier:check | ✅ Passed |
| 📚 Docusaurus | lint | ✅ Passed |
| 📚 Docusaurus | typecheck | ✅ Passed |
| 📚 Docusaurus | validate:token-usage | ✅ Passed |
| 📚 Docusaurus | prettier:check | ❌ Failed |
| 🎭 Playwright | lint | ✅ Passed |
| 🎭 Playwright | typecheck | ✅ Passed |
| 🎭 Playwright | validate:token-usage | ✅ Passed |
| 🎭 Playwright | prettier:check | ✅ Passed |
💡 How to Fix
- Storybook — typecheck:
pnpm --filter @grasdouble/lufa_design-system-storybook run typecheck - Docusaurus — prettier:
pnpm --filter @grasdouble/lufa_design-system-docusaurus run prettier:write
Contributor
🎭 Playwright Component Test Results
|
| Metric | Count |
|---|---|
| Total Tests | 843 |
| Passed | 841 |
| Failed | 2 ❌ |
| Visual Diffs | 0 |
| Execution Time | N/As |
📋 Components Tested
All design system components were tested in:
- ☀️ Light mode
- 🌙 Dark mode
- 💻 Desktop viewport (1280x720)
Tested Components:
- Box, Stack, Text, Icon
- Button, Badge, Divider
- Center, Container, Flex, Grid
- Portal, VisuallyHidden, Label
- Input, Card (compositions)
🔧 Troubleshooting
Common causes of test failures or visual differences:
- Token changes - Updated design tokens affect component styling
- CSS changes - Modified component styles or utility classes
- Font changes - Font family or weight modifications
- Layout changes - Padding, margin, or sizing adjustments
- Browser updates - Rendering engine differences
Run tests locally:
# Run component tests
pnpm --filter @grasdouble/lufa_design-system-playwright test
# Update snapshots if changes are intentional
pnpm --filter @grasdouble/lufa_design-system-playwright test-ct:update-snapshots
# Run tests in UI mode for debugging
pnpm --filter @grasdouble/lufa_design-system-playwright test-ct:uiThis branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The design system lacked a native
<Select>component, forcing consumers to hand-roll styled<select>elements inconsistently. This adds a fully-featuredSelectcomponent aligned with the existingInputvisual contract.Component API
Key design decisions:
onChangereceivesstringdirectly (not aChangeEvent) — matches the expected API from the issueerroris astring(notboolean) — component owns error message display witharia-describedbywiringdisabled hiddenoption — appears in closed state but cannot be re-selectedSelect.Optionis a compound sub-component wrapping native<option>for ergonomic usage<select>elementImplementation
Select.tsx—forwardRefwrapper around native<select>, compound withSelect.OptionSelect.module.css— Reuses--lufa-component-input-*tokens for visual parity withInput; size variants (sm/md/lg) use the same padding/font-size token ladder as the input token setSelect,SelectProps,SelectSizeValueCoverage
onChangevalue delivery,aria-describedbyassociation, visual regression snapshots